from celery import Celery

cel = Celery("celery_demo", 
              broker = 'redis://127.0.0.1:6379/1', 
              backend = 'redis://127.0.0.1:6379/2', 
              include=['celery_tasks.task01', 'celery_tasks.task02', 'celery_tasks.task03'])
# 时区
cel.conf.timezone = 'Asia/Shanghai'
# 是否使用UTC
cel.conf.enable_utc = False